function ModuleImageLine() {
  this._container = null;
}

ModuleImageLine.prototype._open = function(container, options) {
  var table, tr, td, _self = this;
  this._container = container;
  
  this._idx = (options && options.idx) ? options.idx : 0;
  this._line = options.obj;
  this._callbackFunc = options.callbackFunc;
  this._exist = options.exist;
  
  this._gui = new ImageLine(document, this._container, this._line.width, this._line.height, null, null, options)._gui;
  
  if (this._exist) {
    this._gui.move.style.border = 'solid 1px #333';
    this._gui.move.style.position = 'absolute';
    this._gui.move.style.top = this._line.top + 'px';
    this._gui.move.style.left = this._line.left + 'px';
    this._gui.move.style.width = this._line.width + 'px';
    this._gui.move.style.height = this._line.height + 'px';
    this._gui.move.style.backgroundColor = '#dec';
    this._gui.close.style.display = 'inline'; 
    
//    this._gui.move.onmouseover = function() { _self._gui.close.style.display = 'inline'; };
//    this._gui.move.onmouseout = function() { _self._gui.close.style.display = 'none'; };
    this._gui.close.onclick = function() {
      new RequestUtils()._write(JSON.stringify([{ n: 'pz_tnfc_ivq_line', a: [], r: [_self._line] }]), function(result, params) { location.href = '?t=test&i=' + _self._idx; }, { pos: DOMUtils.findPos(this) });
    };
  
  } else {
    this._gui.move.style.border = 'solid 1px #333';
    this._gui.move.style.position = 'absolute';
    this._gui.move.style.top = this._line.top + 'px';
    this._gui.move.style.left = this._line.left + 'px';
    this._gui.move.style.width = this._line.width + 'px';
    this._gui.move.style.height = this._line.height + 'px';
    this._gui.move.style.backgroundColor = '#dec';
    this._gui.close.style.display = 'inline';
    
//    this._gui.move.onmouseover = function() { _self._gui.close.style.display = 'inline'; };
//    this._gui.move.onmouseout = function() { _self._gui.close.style.display = 'none'; };
    this._gui.close.onclick = function() { _self._close(); _self._callbackFunc(1); };
  }
  
};

ModuleImageLine.prototype._close = function() {
  if (this._container) {
    this._container.removeChild(this._gui.move);
    this._container = null;
  }
};

